import { httpGet, httpPost } from "../utils/http";
const apiUrl = "jyyskb";

/**
 * 经营预算看板_详情_年_全公司
 * @param {*} param
 * @returns
 */
export function year_all(param) {
  return httpPost(`${apiUrl}/year_all`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}

/**
 * 经营预算看板_详情_年_各部门
 * @param {*} param
 * @returns
 */
export function year_dp(param) {
  return httpPost(`${apiUrl}/year_dp`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records);
}

/**
 * 经营预算看板_详情_年_各项目
 * @param {*} param 
 * @returns 
 */
export function year_pro(param) {
  return httpPost(`${apiUrl}/year_pro`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records);
}

/**
 * 经营预算看板_详情_季度_全公司
 * @param {*} param 
 * @returns 
 */
export function quarter_all(param) {
  return httpPost(`${apiUrl}/quarter_all`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}

/**
 * 经营预算看板_详情_季度_各部门
 * @param {*} param 
 * @returns 
 */
export function quarter_dp(param) {
  return httpPost(`${apiUrl}/quarter_dp`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records);
}

/**
 * 经营预算看板_详情_季度_各项目
 * @param {*} param 
 * @returns 
 */
export function quarter_pro(param) {
  return httpPost(`${apiUrl}/quarter_pro`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records);
}	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	